Skip to content

bpo-40334: Do not show error caret if RAISE_SYNTAX_ERROR_NO_COL_OFFSE…#20020

Closed
pablogsal wants to merge 1 commit intopython:masterfrom
pablogsal:no-col-offset
Closed

bpo-40334: Do not show error caret if RAISE_SYNTAX_ERROR_NO_COL_OFFSE…#20020
pablogsal wants to merge 1 commit intopython:masterfrom
pablogsal:no-col-offset

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented May 10, 2020

Before:

>>> f(x for x in range(10),)
  File "<console>", line 1
    f(x for x in range(10),)
    ^
SyntaxError: Generator expression must be parenthesized

With this PR:

>>> f(x for x in range(10),)
  File "<console>", line 1
SyntaxError: Generator expression must be parenthesized

https://bugs.python.org/issue40334

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants